package cn.player.adapter;

import com.startchat.filter.filter.FilterManager;

import cn.player.R;


public class FilterTypeHelper {

    public static int FilterType2Color(FilterManager.FilterType filterType) {
        switch (filterType) {
            case Normal:
                return R.color.filter_color_grey_light;
            case Blend:
            case SoftLight:
            case ToneCurve:
                return R.color.filter_color_brown_light;
            case Antique:
            case Nostalgia:
                return R.color.filter_color_green_dark;
            case COOL:
                return R.color.filter_color_blue_dark;
            case CALM:
                return R.color.filter_color_brown;
            case WARM:
                return R.color.filter_color_pink;
            case TENDER:
                return R.color.filter_color_brown;
            case Beauty:
            case SkinWhite:
                return R.color.filter_color_red;
            default:
                return R.color.filter_color_grey_light;
        }
    }

    public static int FilterType2Thumb(FilterManager.FilterType filterType) {
        switch (filterType) {
            case Normal:
            case Blend:
            case SoftLight:
            case ToneCurve:
            case Antique:
            case Nostalgia:
            case COOL:
            case CALM:
            case WARM:
            case TENDER:
            case Beauty:
            case SkinWhite:
            case Healthy:
            default:
                return R.drawable.bg_filter;
        }
    }

    public static int FilterType2Name(FilterManager.FilterType filterType) {
        switch (filterType) {
            case Normal:
                return R.string.filter_normal;
            case Blend:
                return R.string.filter_blend;
            case SoftLight:
                return R.string.filter_soft_light;
            case ToneCurve:
                return R.string.filter_tone_curve;
            case Antique:
                return R.string.filter_antique;
            case Nostalgia:
                return R.string.filter_nostalgia;
            case COOL:
                return R.string.filter_cool;
            case CALM:
                return R.string.filter_calm;
            case WARM:
                return R.string.filter_warm;
            case TENDER:
                return R.string.filter_tender;
            case Beauty:
                return R.string.filter_beauty;
            case SkinWhite:
                return R.string.filter_skin_white;
            case Healthy:
                return R.string.filter_healthy;
            default:
                return R.string.filter_normal;
        }
    }
}
